package com.kady.entity;

import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/31
 * \* Time: 10:33
 * \* 千峰JAVA2101班
 * \* Description: 餐车实体
 * \
 */
public class Cart {
    /**
     * 餐车数据
     */
    private List<CartItem> cartItems;
    /**
     * 餐车总价
     */
    private double totalPrice;
    /**
     * 餐车总数量
     */
    private long totalCount;

    public Cart() {
    }

    public Cart(List<CartItem> cartItems, double totalPrice,long totalCount) {
        this.cartItems = cartItems;
        this.totalPrice = totalPrice;
    }

    public List<CartItem> getCartItems() {
        return cartItems;
    }

    public void setCartItems(List<CartItem> cartItems) {
        this.cartItems = cartItems;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cartItems=" + cartItems +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
